import * as actionTypes from './constants'


const defaultState = {
  banners:[],
  introSongs:[],
  privateList:[],
  newSongs:[]
}

function reducer(state=defaultState,action){
  switch(action.type){
    case actionTypes.CHANGE_BANNERS:
      return {...state,banners:action.banners}
    case actionTypes.CHANGE_INTRO_SONGS:
      return {...state,introSongs:action.introSongs}
    case actionTypes.CHANGE_PRIVATE_LIST:
      return {...state,privateList:action.privateList}
    case actionTypes.CHANGE_NEW_SONGS:
      return {...state,newSongs:action.newSongs}
    default:
      return state
  }
}

export default reducer

